﻿@using JPW.OnlinePaperSubmissionSystem.Project
<style>
    .modal-dialog {
        width: 70%;
        height: 70%;
    }
</style>
<form name="createOrEditAnnouncementForm" role="form" novalidate class="form-validation">
    <div class="modal-header">
        <h4 class="modal-title">
            <h4 class="modal-title">
            <span ng-if="vm.announcement.id">修改公告</span>
            <span ng-if="!vm.announcement.id">添加公告</span>
        </h4>
        </h4>
    </div>
    <div class="modal-body">
        <div class="form-group form-md-line-input">
            <input class="form-control" type="text" name="Title" ng-model="vm.announcement.title" >
            <label>公告标题</label>
        </div>
        @*<div class="form-group form-md-line-input">
            <input class="form-control" type="text" name="Content" ng-model="vm.announcement.content" >
            <label>公告内容</label>
        </div>*@
        <div class="form-group form-md-line-input">
            <label>公告内容</label>
            <textarea kendo-editor options="vm.editor" name="Content" ng-model="vm.announcement.content"></textarea>
        </div>
    </div>
    <div class="modal-footer">
        <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
        <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save(0)" ng-disabled="createAnnouncementForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save(1)" ng-disabled="createAnnouncementForm.$invalid">保存发布</button>
    </div>
</form>

